<?php
class GiftCodeOneVo extends SzAbstractMySqlVo
{

    private $giftCode;
    private $userId;
    private $receiveTime;

    /**
     * Initialize GiftCodeOneVo.
     *
     * @param $giftCode
     * @param $userId
     * @param $receiveTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return GiftCodeOneVo
     */
    public function __construct($giftCode, $userId, $receiveTime, $isInsert = false) {
        $this->giftCode = $giftCode;
        $this->userId = $userId;
        $this->receiveTime = $receiveTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'GiftCodeOneVo';
        $this->ormName = 'GiftCodeOne';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'giftCode' => $this->getGiftCode(),
            'userId' => $this->getUserId(),
            'receiveTime' => $this->getReceiveTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'giftCode' => $this->getGiftCode(),
            'userId' => $this->getUserId(),
            'receiveTime' => $this->getReceiveTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getGiftCode(),
            $this->getUserId(),
            $this->getReceiveTime(),
        );
    }

    public function getGiftCode()
    {
        return $this->giftCode;
    }

    public function setGiftCode($val)
    {
        $this->saveColumnStatus(0, $this->giftCode);
        $this->giftCode = $val;
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(1, $this->userId);
        $this->userId = $val;
    }

    public function getReceiveTime()
    {
        return $this->receiveTime;
    }

    public function setReceiveTime($val)
    {
        $this->saveColumnStatus(2, $this->receiveTime);
        $this->receiveTime = $val;
    }

}